if (self.CavalryLogger) { CavalryLogger.start_js(["6etW2"]); } __d("ScaledImage.react",["cx","Image.react","React","joinClasses","prop-types"],(function(a,b,c,d,e,f,g){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){__p&&__p();var a=this.props,c=a.className,d=a.height,e=a.imageSize,f=a.width;a=babelHelpers.objectWithoutPropertiesLoose(a,["className","height","imageSize","width"]);var g={height:d,width:f},h=e.width/e.height,i=f/d;if(h>i){h=d/e.height;i=e.width*h;h={height:d,left:-Math.floor((i-f)/2),width:i}}else{i=f/e.width;e=e.height*i;h={height:e,top:-Math.floor((e-d)/2),width:f}}return b("React").createElement("div",{className:b("joinClasses")(c,"uiScaledImageContainer"),style:g},b("React").createElement(b("Image.react"),babelHelpers["extends"]({style:h},a)))};return c}(b("React").Component);a.propTypes={height:b("prop-types").number.isRequired,imageSize:b("prop-types").shape({height:b("prop-types").number.isRequired,width:b("prop-types").number.isRequired}).isRequired,width:b("prop-types").number.isRequired};e.exports=a}),null); __d("BUISwitch.react",["cx","fbt","BUIComponent","Event","Keys","React"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();a=b("React").PropTypes;c=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var c,d;for(var e=arguments.length,f=new Array(e),g=0;g0)||d>0&&f>d){e.progress=-1;return e}f=Number(f.toFixed(1));c==="finish"||c==="notify"?f=100:f>=100&&(f=a.progress<100?a.progress:g);e.progress=f;e.progressWithoutFake=f;return e},getUpdatedProgress:function(a,b){var c={progress:b.progress,progressWithoutFake:b.progressWithoutFake};a.obj.cached_progress&&b.progress